package com.px.device.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.px.common.annotation.Excel;
import com.px.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 电池管理对象 battery_info
 * 
 * @author WRJ
 * @date 2024-08
 */
@Data
public class BatteryInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @ApiModelProperty(value = "主键")
    private Long id;

    /** 类型 */
    @ApiModelProperty(value = "类型")
    @Excel(name = "类型")
    private String type;

    /** 序列号 */
    @ApiModelProperty(value = "序列号")
    @Excel(name = "序列号")
    private String sn;

    /** 最后接入无人机ID */
    @ApiModelProperty(value = "最后接入无人机ID")
    @Excel(name = "最后接入无人机ID")
    private Long lastAccessDroneId;

    /** 最后接入无人机名称 */
    @ApiModelProperty(value = "最后接入无人机名称")
    @Excel(name = "最后接入无人机名称")
    private String lastAccessDroneName;

    /** 最后接入无人机型号 */
    @ApiModelProperty(value = "最后接入无人机型号")
    @Excel(name = "最后接入无人机型号")
    private String lastAccessDroneType;

    /** 电池剩余电量,0-100 */
    @ApiModelProperty(value = "电池剩余电量,0-100")
    @Excel(name = "电池剩余电量,0-100")
    private Integer capacityPercent;

    /** 电池循环次数 */
    @ApiModelProperty(value = "电池循环次数")
    @Excel(name = "电池循环次数")
    private Integer loopTimes;

    /** 最后使用时间 */
    @ApiModelProperty(value = "最后使用时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "最后使用时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date lastUseTime;

    /** 出厂容量mAh */
    @ApiModelProperty(value = "出厂容量mAh")
    @Excel(name = "出厂容量mAh")
    private Integer originalCapacity;

    /** 当前容量mAh */
    @ApiModelProperty(value = "当前容量mAh")
    @Excel(name = "当前容量mAh")
    private Integer currentCapacity;

    /** 责任人姓名 */
    @ApiModelProperty(value = "责任人姓名")
    @Excel(name = "责任人姓名")
    private String dutyName;

    /** 责任人账号 */
    @ApiModelProperty(value = "责任人账号")
    @Excel(name = "责任人账号")
    private String dutyCode;

    /** 创建人所属部门ID */
    @ApiModelProperty(value = "创建人所属部门ID")
    @Excel(name = "创建人所属部门ID")
    private Long deptId;
}
